package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_xiuxian_practice_val", desc = "凡人修仙传-玩家修为日志", autoSave = true, uploadCk = true)
public class LogXiuXianPracticeVal extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "境界id")
    private int stateId;
    @FieldTypeAnnotation(desc = "类型，1消耗仙草，2自然增长，3境界升级")
    private int type;
    @FieldTypeAnnotation(desc = "变化数量")
    private long changeCount;
    @FieldTypeAnnotation(desc = "变化后最新数量")
    private long newCount;
    @FieldTypeAnnotation(desc = "消耗体力")
    private int consumeEnergy;

    public LogXiuXianPracticeVal(long userId, int activityId, int stateId, int type, long changeCount, long newCount, int consumeEnergy) {
        this.userId = userId;
        this.activityId = activityId;
        this.stateId = stateId;
        this.type = type;
        this.changeCount = changeCount;
        this.newCount = newCount;
        this.consumeEnergy = consumeEnergy;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
